﻿package
{
	import flash.system.Capabilities;
	import flash.desktop.NativeApplication;
	import flash.events.MouseEvent;
	import flash.display.MovieClip;
	
	public class Errors_mc extends MovieClip
	{
		public function Errors_mc()
		{
			this.dragBar.addEventListener(MouseEvent.MOUSE_DOWN, drag_me, false, 0, true);

			this.ok_btn.addEventListener(MouseEvent.CLICK, hideError, false, 0, true);
			this.ok_btn.buttonMode = true;
		}
		
		function hideError(e)
		{
			this.parent.removeChild(e.target.parent);
		}

		function drag_me(e:MouseEvent)
		{
			stage.nativeWindow.startMove();
		}
	}
}